import axios from "@/libs/api.request"
let baseUrl = "http://192.168.1.68:18081"

export const getGoodsList = (data) => {
    return axios.request({
        url: baseUrl + "/shangchao/goods_store_link/get_list",
        params: data,
        method: "get"
    });
}

export const getSearchList = (data) => {
    return axios.request({
        url: baseUrl + "/shangchao/goods_category/get_cascade",
        params: data,
        method: "get"
    });
}

//上下架商品
export const shelfGoods = (data) => {
    return axios.request({
        url: baseUrl + "/shangchao/goods_store_link",
        data: data,
        method: "put"
    });
}

